package com.agriculture.data_demo.entity;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
import java.util.Date;


/**
 * @author morningbear
 * @date 20.10.6
 */
@Slf4j
@Data
@MappedSuperclass
public abstract class BaseEntity implements Serializable {

    @Id
    @Column(name = "id")
    private Integer id;

    @Column(name = "enterprise")
    @Value("温氏食品股份有限公司")
    private String enterprise;

    @Column(name = "fence")
    private String fence;

    @Column(name = "farm")
    private String farm;

    @Column(name = "create_at")
    private Date createAt;
}
